//package com.qifenqian.turbot.deprecated.model
//
//import android.content.Context
//import com.qifenqian.turbot.base.BaseModel
//import com.qifenqian.turbot.deprecated.contract.RegisterContract
//import com.qifenqian.turbot.module.entity.response.RegisterEntity
//import com.qifenqian.turbot.net.ModelCallback
//import com.qifenqian.turbot.net.NetObserver
//
///**
// * @author H
// * @createTime 2018/12/17 09:04
// * @description
// * @see
// * @since
// */
//@Deprecated("AccountModel")
//class RegisterModel(context: Context) : BaseModel(context), RegisterContract.Model {
//
//    override fun sendSmsCode(type: Int, callback: ModelCallback<Nothing>) {
//        mClient!!.sendSmsCode(type)
//                .subscribe(object : NetObserver<Nothing>(mContext, true) {
//                    override fun onSuccess(msg: String?, t: Nothing?) {
//                        callback.onSuccess(t = t)
//                    }
//
//                    override fun onFailure(code: Int, msg: String?) {
//                        callback.onFailure(code, msg)
//                    }
//
//                })
//    }
//
//    override fun register(userCode: String, smsCode: String, password: String, callback: ModelCallback<RegisterEntity>) {
//        mClient!!.register(userCode, smsCode, password)
//                .subscribe(object : NetObserver<RegisterEntity>(mContext, true) {
//                    override fun onSuccess(msg: String?, t: RegisterEntity?) {
//                        callback.onSuccess(t = t)
//                    }
//
//                    override fun onFailure(code: Int, msg: String?) {
//                        callback.onFailure(code, msg)
//                    }
//                })
//    }
//}
